home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / logger.z / logger
Text File  |  1998-10-20  |  3KB  |  67 lines

  1.  
  2.  
  3.  
  4. LLLLOOOOGGGGGGGGEEEERRRR((((1111))))                                                            LLLLOOOOGGGGGGGGEEEERRRR((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      logger - make entries in the system log
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      llllooooggggggggeeeerrrr [ ----iiii ] [ ----ssss ] [ ----ffff _f_i_l_e ] [ ----tttt _t_a_g ] [ ----pppp _p_r_i ] [ _m_e_s_s_a_g_e ... ]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _L_o_g_g_e_r provides a shell command interface to the _s_y_s_l_o_g(3B) system log
  16.      routine.  It can log a message specified on the command line, from a
  17.      specified file, or from the standard input. Each line in the specified
  18.      file or standard input is logged separately.
  19.  
  20.      _L_o_g_g_e_r has the following options:
  21.  
  22.      ----iiii        Log the process ID of the logger process with each line.
  23.  
  24.      ----ssss        Log the message to standard error, as well as the system log.
  25.  
  26.      ----ffff _f_i_l_e   Log the contents of the specified file.
  27.  
  28.      ----pppp _p_r_i    Enter the message with the specified priority.  The priority
  29.                may be specified numerically or as a ``facility.level'' pair.
  30.                For example, ``-p local3.info'' logs the message(s) as
  31.                _i_n_f_ormational level in the _l_o_c_a_l_3 facility.  The default is
  32.                ``user.notice.''  See _s_y_s_l_o_g(3B) for a description of the
  33.                facilities and levels.
  34.  
  35.      ----tttt _t_a_g    Mark every line in the log with the specified _t_a_g.
  36.  
  37.      _m_e_s_s_a_g_e   The message to log; if not specified, and the ----ffff flag is not
  38.                provided, standard input is logged.
  39.  
  40.      _L_o_g_g_e_r exits with 0 if successful, and with 1 if an error occurs.
  41.  
  42. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  43.           logger  program failed
  44.  
  45.      This will log the message ``program failed'' with user's name as the tag
  46.      and with a facility and level of ``user.notice.''
  47.  
  48.           logger  -p local0.notice  -t sysprog  -f /tmp/sysprog.errs
  49.  
  50.      This will log each line in the file /_t_m_p/_s_y_s_p_r_o_g._e_r_r_s with the prefix
  51.      ``sysprog''. The facility is ``local0'' and the priority level is
  52.      ``notice.''
  53.  
  54. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  55.      syslogd(1M)
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.